#pragma once

#include "platform/platform.h"
#include <string>


class URL;

class EZProxyConnecter
{
public:
    ez_socket_t proxy_connect(const std::string& proxy_url, const URL& real_url);

private:

    ez_socket_t http_proxy_connect(const URL& url, const URL& rurl);

    ez_socket_t sock4_proxy_connect(const URL& url, const URL& rurl);

    ez_socket_t sock5_proxy_connect(const URL& url, const URL& rurl);
};